package com.zlp.boot1.config;

import com.zlp.boot1.servlet.ServletDemo1;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: zhulaiping
 * @Date: 2021/10/31 14:11
 */
//@Configuration
public class ServletConfig {

    //注册Servlet
    @Bean
    public ServletRegistrationBean ServletDemo1(){
        ServletDemo1 servletDemo1 = new ServletDemo1();
        return new ServletRegistrationBean(servletDemo1);
    }
}
